package xyz.ieden.jpa.service;

import xyz.ieden.jpa.entity.User;

import java.util.List;

/**
 * Created by Gavin on 2017.08.05.
 */
public interface IUserService {

    void deleteAll();

    void deleteByUsers(List<User> userList);

    void deleteByUser(User user);

    void deleteById(Integer id);

    Long countById();

    List<User> findAll(List<Integer> idList);

    List<User> findAll();

    Boolean exists(User user);

    User findOneById(Integer id);

    List<User> saveUsers(List<User> userList);

    User save(User user);
}
